package com.huilian.iotbox.admin.wap.controller;

import com.huilian.iotbox.admin.wap.service.UserService;
import com.huilian.iotbox.data.controller.BaseController;
import com.huilian.iotbox.data.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 谢洛涛
 * @date 2021/1/14 18:28
 */
public class UserInfoController extends BaseController {
    @Autowired
    private UserService userService;
    /**
     * 获取登录用户信息
     * @param request
     * @return
     */
    public UserInfo getLoginUserInfo(HttpServletRequest request){
        return userService.getLoginUserInfo(request);
    }
}
